﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <script src="~/js/frame.js"></script>
    <style>
        #container {
            background: url(../../images/login_bg.jpg);
            height: 100%;
            width: 100%;
        }

        #logininfo {
            position: absolute;
            top: 50%;
            margin: -100px 0 0 200px;
        }

        #content {
            width: 388px;
            height: 388px;
            background: url(../../images/login_shadow.png);
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -211px 0 0 150px;
        }

        .loginbtn {
            padding: 10px 16px !important;
            font-size: 17px !important;
            line-height: 1.25 !important;
            border-radius: 4px !important;
            height: 46px !important;
        }

        .logintitle {
            height: 60px;
            line-height: 60px;
            font-size: 16px;
            padding-left: 20px;
            font-weight: bold;
            color: #FFFFFF;
            letter-spacing: 5px;
            background-color: grey;
        }

        .logincontent {
            padding: 20px !important;
        }

        .logininput {
            height: 50px !important;
            font-size: 16px !important;
            padding-left: 50px !important;
        }

        .loginrow {
            margin-top: 10px !important;
            margin-bottom: 10px !important;
        }

        .loginicon {
            font-size: 25px;
            line-height: 50px;
            margin-left: 5px
        }

        .loginbottom {
            padding-top: 10px !important;
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="logininfo">
            <img src="~/images/login_title.png" />
        </div>
        <div id="content">
            <div class="logintitle">
                <div class="col-xs-12">
                    <span>账号登陆</span>
                </div>
            </div>

            <div class="container-fluid logincontent">
                <form id="form">
                    <div class="formrow">
                        <div class="col-xs-12 loginrow">
                            <div class="input-control has-icon-left" style="width:100%;">
                                <input id="LoginID" name="LoginID" type="text" class="form-control logininput" placeholder="用户名">
                                <label for="LoginID" class="input-control-icon-left"><i class="icon icon-user loginicon"></i></label>
                            </div>
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="col-xs-12 loginrow">
                            <div class="input-control has-icon-left has-icon-right" style="width:100%">
                                <input id="Password" name="Password" type="password" class="form-control logininput" placeholder="密码">
                                <label for="Password" class="input-control-icon-left"><i class="icon icon-lock loginicon"></i></label>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="formrow">
                <div class="col-xs-12 loginbottom">
                    <button class="btn btn-primary loginbtn" type="button" style="width:100%" onclick="UserLogin()">登陆</button>
                </div>
            </div>
        </div>
    </div>
    <script>
        function UserLogin() {
            var param = $("#form").GetForm();
            CloudPost(param, "userlogin", function (res) {
                if (res.code == 0) {
                    var Token = res.data.Token;
                    window.location.href = res.data.RedirectUrl;
                } else {
                    OpenFail(res.data)
                }
            })
        }
    </script>
</body>
</html>
